/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Act Mood Predicate</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A10202 (C-0-T10196-A10202-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getActMoodPredicate()
 * @model extendedMetaData="name='ActMoodPredicate'"
 * @generated
 */
public enum ActMoodPredicate implements Enumerator {
	/**
	 * The '<em><b>GOL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #GOL_VALUE
	 * @generated
	 * @ordered
	 */
	GOL(0, "GOL", "GOL"),

	/**
	 * The '<em><b>EVNCRT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #EVNCRT_VALUE
	 * @generated
	 * @ordered
	 */
	EVNCRT(1, "EVNCRT", "EVN.CRT"),

	/**
	 * The '<em><b>EXPEC</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #EXPEC_VALUE
	 * @generated
	 * @ordered
	 */
	EXPEC(2, "EXPEC", "EXPEC"),

	/**
	 * The '<em><b>OPT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OPT_VALUE
	 * @generated
	 * @ordered
	 */
	OPT(3, "OPT", "OPT"),

	/**
	 * The '<em><b>PERM</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PERM_VALUE
	 * @generated
	 * @ordered
	 */
	PERM(4, "PERM", "PERM"),

	/**
	 * The '<em><b>PERMRQ</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PERMRQ_VALUE
	 * @generated
	 * @ordered
	 */
	PERMRQ(5, "PERMRQ", "PERMRQ"),

	/**
	 * The '<em><b>RSK</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RSK_VALUE
	 * @generated
	 * @ordered
	 */
	RSK(6, "RSK", "RSK");

	/**
	 * The '<em><b>GOL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>GOL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #GOL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int GOL_VALUE = 0;

	/**
	 * The '<em><b>EVNCRT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>EVNCRT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #EVNCRT
	 * @model literal="EVN.CRT"
	 * @generated
	 * @ordered
	 */
	public static final int EVNCRT_VALUE = 1;

	/**
	 * The '<em><b>EXPEC</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>EXPEC</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #EXPEC
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int EXPEC_VALUE = 2;

	/**
	 * The '<em><b>OPT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>OPT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OPT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int OPT_VALUE = 3;

	/**
	 * The '<em><b>PERM</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PERM</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PERM
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PERM_VALUE = 4;

	/**
	 * The '<em><b>PERMRQ</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PERMRQ</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PERMRQ
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PERMRQ_VALUE = 5;

	/**
	 * The '<em><b>RSK</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RSK</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RSK
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RSK_VALUE = 6;

	/**
	 * An array of all the '<em><b>Act Mood Predicate</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ActMoodPredicate[] VALUES_ARRAY =
		new ActMoodPredicate[] {
			GOL,
			EVNCRT,
			EXPEC,
			OPT,
			PERM,
			PERMRQ,
			RSK,
		};

	/**
	 * A public read-only list of all the '<em><b>Act Mood Predicate</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ActMoodPredicate> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Act Mood Predicate</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActMoodPredicate get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActMoodPredicate result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Mood Predicate</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActMoodPredicate getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActMoodPredicate result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Mood Predicate</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActMoodPredicate get(int value) {
		switch (value) {
			case GOL_VALUE: return GOL;
			case EVNCRT_VALUE: return EVNCRT;
			case EXPEC_VALUE: return EXPEC;
			case OPT_VALUE: return OPT;
			case PERM_VALUE: return PERM;
			case PERMRQ_VALUE: return PERMRQ;
			case RSK_VALUE: return RSK;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private ActMoodPredicate(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //ActMoodPredicate
